import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dings
 * Date: 2024-05-22
 * Time: 9:39
 */
public class Test {
    public static void main (String[] args) throws CloneNotSupportedException {
      Student student1 = new Student("dings",18);
        Student student2 = (Student) student1.clone();
        student2.money.moneyNum = 100;
        System.out.println(student1.money.moneyNum);
        System.out.println(student2.money.moneyNum);
    }


    public static void main1(String[] args) {
        int[] array = {1,2,3,4};
        int[] array2 = array.clone();
        System.out.println(Arrays.toString(array2));
    }
}
